import React,{Component} from 'react';

export default class extends Component {


      constructor(props){
          super(props)
          this.state = {
            number:100
          }
      }


      render() {
        return (
          <div  onClick={this.clickevent.bind(this)}> this is a box   {this.state.number}</div>
        )
      }


      clickevent(){
          console.log('click')
          // this.state.number++;
          console.log(this)
          this.setState({
            number: this.state.number+1
          })
      }
}
